/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */
public class Rectangle {
    private  double width;
    private  double heght;

    @Override
    public String toString() {
        return "长方形的宽是"+width+",高是"+heght+"，面积是"+getArea();
    }

    public double getWidth() {
        return width;
    }

    public double getHeght() {
        return heght;
    }

    public void setWidth(double width) {
        this.width = width;
    }

    public void setHeght(double heght) {
        this.heght = heght;
    }

    public  Rectangle(){
    }
    public Rectangle(double width,double heght){
        this.width = width;
        this.heght = heght;
    }
    public double getArea(){
        return width*heght;
    }
}
